package com.zyf.service;

import com.zyf.entity.book;

import java.util.List;

public interface service {
    public List<book> listAllbook();

    public List<book> findBookByName(String bookName);

    public List<book> findBookByAuther(String Auther);

    public List<book> findBookByLocation(String location);

    public book findBookById(int id);

    public int deleteBookById(int id);

    public int insertNewBook(book abookWithoutId);

    public int setName(int id, String Name);

    public int setAuther(int id, String Auther);

    public int setLocation(int id, String Location);

    public int updateDate(int id, java.sql.Date sqldate);
}
